// @FileName  :expand.c
// @Time      :2024/3/1 8:55
// @Author    :YKW
//# include <bits/stdc++.h>
//using namespace std;
# include <stdio.h>
# include <stdlib.h>
# include <math.h>
# include <string.h>
# include <stdlib.h>

int cate(char c) {
    if (c >= 'a' && c <= 'z')return 1;
    else if (c >= 'A' && c <= 'Z')return 2;
    else if (c >= '0' && c <= '9')return 3;
}

int ok(char a, char b) {
    return cate(a) == cate(b) && b > a;
}

void solve() {
    char in[100];
    scanf("%s", in);
    for (int i = 1; i <= strlen(in); i++) {
        if (in[i] != '-')printf("%c", in[i - 1]);
        else {
            if (ok(in[i - 1], in[i + 1])) {
                printf("%c", in[i - 1]);
                for (char tmp = in[i - 1] + 1; tmp < in[i + 1]; tmp++)
                    printf("%c", tmp);
                i++;
            } else {
                printf("%c", in[i - 1]);
            }
        }
    }
}

void main() {
    int t = 1;
    //scanf("%d", &t);
    while (t--) solve();
    return 0;
}